package com.cash.channel.svc.service.base;

import com.cash.channel.api.exception.CashChannelException;
import com.cash.channel.api.model.ApiRequestModel;
import com.cash.channel.api.model.ApiResponseModel;
import com.cash.channel.api.model.response.CredentialCheckResponse;

/**
 * @blame taihao
 */
public interface CredentialCheck {

    Integer IS_STOCK = 1;
    Integer NOT_STOCK = 0;

    Integer IS_CAN_LOAN = 1;
    Integer CAN_NOT_LOAN = 0;

    Integer REASON_STOCK = 1;
    Integer REASON_OVERDUE = 2;
    Integer REASON_TRANSIT = 3;
    Integer REASON_OTHER = 4;

    /**
     * 撞库检查
     * @return
     */
    ApiResponseModel<CredentialCheckResponse> doCredentialCheck(ApiRequestModel apiRequestModel) throws CashChannelException;

}
